package com.nmsl.mapper;

import com.nmsl.domain.TyDepartment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【departments(科室表)】的数据库操作Mapper
* @createDate 2025-02-15 10:49:15
* @Entity com.nmsl.domain.TyDepartment
*/
@Mapper
public interface DepartmentsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(TyDepartment record);

    int insertSelective(TyDepartment record);

    TyDepartment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TyDepartment record);

    int updateByPrimaryKey(TyDepartment record);

    List<TyDepartment> selectAllParentDepartments();

    List<TyDepartment> selectAllChildDepartments(Long id);

    List<TyDepartment> getAllChildDepartments();
}
